package com.huawei.translate.vo.application;

import com.huawei.translate.model.Application;

import java.util.Date;

public class ApplicationRequest {
    private String appName;
    private Date onlineDate;
    private String accessCountPerSec;
    private String languages;
    private String description;
    private String productOwner;
    private String poEmail;
    private String interfacePerson;
    private String iPersonEmail;


    public String getAppName() {
        return appName;
    }

    public void setAppName(String appName) {
        this.appName = appName;
    }

    public Date getOnlineDate() {
        return onlineDate;
    }

    public void setOnlineDate(Date onlineDate) {
        this.onlineDate = onlineDate;
    }

    public String getAccessCountPerSec() {
        return accessCountPerSec;
    }

    public void setAccessCountPerSec(String accessCountPerSec) {
        this.accessCountPerSec = accessCountPerSec;
    }

    public String getLanguages() {
        return languages;
    }

    public void setLanguages(String languages) {
        this.languages = languages;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getProductOwner() {
        return productOwner;
    }

    public void setProductOwner(String productOwner) {
        this.productOwner = productOwner;
    }

    public String getPoEmail() {
        return poEmail;
    }

    public void setPoEmail(String poEmail) {
        this.poEmail = poEmail;
    }

    public String getInterfacePerson() {
        return interfacePerson;
    }

    public void setInterfacePerson(String interfacePerson) {
        this.interfacePerson = interfacePerson;
    }

    public String getiPersonEmail() {
        return iPersonEmail;
    }

    public void setiPersonEmail(String iPersonEmail) {
        this.iPersonEmail = iPersonEmail;
    }

    public Application toApplication() {
        Application application = new Application();

        application.setAppName(this.appName);
        application.setOnlineDate(this.onlineDate);
        application.setAccessCountPerSec(this.accessCountPerSec);
        application.setLanguages(this.languages);
        application.setDescription(this.description);
        application.setProductOwner(this.productOwner);
        application.setPoEmail(this.poEmail);
        application.setInterfacePerson(this.interfacePerson);
        application.setiPersonEmail(this.iPersonEmail);
        return application;
    }
}
